package com.whfc.gas.entity;

import java.util.Date;

/**
 * @Description: 气体检测消息
 * @author: xugcheng
 * @version: 1.0
 * @date: 2021-08-26 14:23
 */
public class GasMsg {

    /**
     * 硬件ID
     */
    private Integer deviceId;

    /**
     * 帧头
     */
    private int frameHeader;

    /**
     * 长度
     */
    private int length;

    /**
     * 帧类型
     */
    private int frameType;

    /**
     * mac地址
     */
    private String mac;

    /**
     * 短地址
     */
    private int shortAddress;

    /**
     * 自动应答标记
     */
    private int autoReply;

    /**
     * 数据段header
     */
    private int dataHeader;

    /**
     * 数据段长度
     */
    private int dataLength;

    /**
     * 序号
     */
    private int seq;

    /**
     * 命令
     */
    private int cmd;

    /**
     * 设备属性
     */
    private int attr;

    /**
     * 协议版本
     */
    private String version;

    /**
     * 设备状态
     */
    private int state;

    /**
     * 硬件时间
     */
    private Date time;

    /**
     * 传感器数量
     */
    private int sensorNum;

    /**
     * 氧气
     */
    private Float O2;

    /**
     * 一氧化碳
     */
    private Float co;

    /**
     * 甲烷
     */
    private Float ch4;

    /**
     * 可燃气
     */
    private Float ex;

    /**
     * 硫化氢
     */
    private Float h2s;

    /**
     * 温度
     */
    private Float envTemp;

    /**
     * 湿度
     */
    private Float envRh;

    /**
     * 校验和
     */
    private int checkSum;

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public int getFrameHeader() {
        return frameHeader;
    }

    public void setFrameHeader(int frameHeader) {
        this.frameHeader = frameHeader;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getFrameType() {
        return frameType;
    }

    public void setFrameType(int frameType) {
        this.frameType = frameType;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public int getShortAddress() {
        return shortAddress;
    }

    public void setShortAddress(int shortAddress) {
        this.shortAddress = shortAddress;
    }

    public int getAutoReply() {
        return autoReply;
    }

    public void setAutoReply(int autoReply) {
        this.autoReply = autoReply;
    }

    public int getDataHeader() {
        return dataHeader;
    }

    public void setDataHeader(int dataHeader) {
        this.dataHeader = dataHeader;
    }

    public int getDataLength() {
        return dataLength;
    }

    public void setDataLength(int dataLength) {
        this.dataLength = dataLength;
    }

    public int getSeq() {
        return seq;
    }

    public void setSeq(int seq) {
        this.seq = seq;
    }

    public int getCmd() {
        return cmd;
    }

    public void setCmd(int cmd) {
        this.cmd = cmd;
    }

    public int getAttr() {
        return attr;
    }

    public void setAttr(int attr) {
        this.attr = attr;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getSensorNum() {
        return sensorNum;
    }

    public void setSensorNum(int sensorNum) {
        this.sensorNum = sensorNum;
    }

    public Float getO2() {
        return O2;
    }

    public void setO2(Float o2) {
        O2 = o2;
    }

    public Float getCo() {
        return co;
    }

    public void setCo(Float co) {
        this.co = co;
    }

    public Float getCh4() {
        return ch4;
    }

    public void setCh4(Float ch4) {
        this.ch4 = ch4;
    }

    public Float getEx() {
        return ex;
    }

    public void setEx(Float ex) {
        this.ex = ex;
    }

    public Float getH2s() {
        return h2s;
    }

    public void setH2s(Float h2s) {
        this.h2s = h2s;
    }

    public Float getEnvTemp() {
        return envTemp;
    }

    public void setEnvTemp(Float envTemp) {
        this.envTemp = envTemp;
    }

    public Float getEnvRh() {
        return envRh;
    }

    public void setEnvRh(Float envRh) {
        this.envRh = envRh;
    }

    public int getCheckSum() {
        return checkSum;
    }

    public void setCheckSum(int checkSum) {
        this.checkSum = checkSum;
    }

    @Override
    public String toString() {
        return "GasMsg{" +
                "deviceId=" + deviceId +
                ", mac='" + mac + '\'' +
                ", state=" + state +
                ", time=" + time +
                ", sensorNum=" + sensorNum +
                ", O2=" + O2 +
                ", co=" + co +
                ", ch4=" + ch4 +
                ", ch4=" + ex +
                ", h2s=" + h2s +
                ", envTemp=" + envTemp +
                ", envRh=" + envRh +
                '}';
    }
}
